<?php

namespace app\helpers;

/**
 * Description of LinkPager
 *
 * @author liyunfang <381296986@qq.com>
 * @date 2015-09-07
 */
class Redis
{
    private static $_redis;

    public static function getRedis()
    {
        if (self::$_redis == null) {
            self::$_redis = new \Redis();
            self::$_redis->connect('127.0.0.1');
        }
        return self::$_redis;
    }
}